package com.leigq.www.server.properties;

import com.alibaba.nacos.api.config.ConfigType;
import com.alibaba.nacos.api.config.annotation.NacosConfigurationProperties;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 老师配置
 *
 * @author leiguoqing
 * @date 2022年10月16日 13:52:33
 */
@Component
@Data
@NacosConfigurationProperties(prefix = "teacher", autoRefreshed = true, type = ConfigType.YAML, dataId = "${spring.application.name}.yaml")
public class Teacher1Properties implements Serializable {

    /**
     * The constant serialVersionUID.
     */
    private static final long serialVersionUID = -2055944460522992249L;

    /**
     * The Name.
     */
    private String name;


    /**
     * The Age.
     */
    private Integer age;

    /**
     * The List str.
     */
    private List<String> listStr;

    /**
     * The Map.
     */
    private Map<String, Integer> map;
}
